package com.example.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "config")
public class MyConfigProperties {

    private String config;
    private String config2;
    private String config3;
    private String config4;
    private String myApplication;

    public String getConfig() {
        return config;
    }

    public void setConfig(String config) {
        this.config = config;
    }

    public String getConfig2() {
        return config2;
    }

    public void setConfig2(String config2) {
        this.config2 = config2;
    }

    public String getConfig3() {
        return config3;
    }

    public void setConfig3(String config3) {
        this.config3 = config3;
    }

    public String getConfig4() {
        return config4;
    }

    public void setConfig4(String config4) {
        this.config4 = config4;
    }

    public String getMyApplication() {
        return myApplication;
    }

    public void setMyApplication(String myApplication) {
        this.myApplication = myApplication;
    }

    @Override
    public String toString() {
        return "MyConfigProperties{" +
                "config='" + config + '\'' +
                ", config2='" + config2 + '\'' +
                ", config3='" + config3 + '\'' +
                ", config4='" + config4 + '\'' +
                ", myApplication='" + myApplication + '\'' +
                '}';
    }
}
